import type { UserConfigExport } from "@tarojs/cli";
import { PluginItem } from "@tarojs/taro/types/compile";

console.log(process.env.TARO_ENV);

const plugins: PluginItem<object>[] = [];

if (process.env.TARO_ENV === "weapp") {
  plugins.push("@tarojs/plugin-vue-devtools");
}

export default {
  plugins,
  logger: {
    quiet: false,
    stats: true,
  },
  mini: {},
  h5: {},
} satisfies UserConfigExport;
